<%@page import="com.seabook.happy.website.daos.NewsDao"%>
<%@page import="com.seabook.happy.website.services.UserIdentificationService"%>
<%@page import="com.seabook.happy.website.pojos.News"%>
<%@page import="com.seabook.happy.website.utils.DateUtils"%>

<%@page import="com.google.appengine.api.datastore.KeyFactory" %>

<%@page import="java.util.List" %>

<html>
<body>
<%
			NewsDao newsDao = new NewsDao();
			List<News> newsList = newsDao.listAllNews();
			for (News news : newsList) {
%>
			<%= news.getNewsContent().getValue() + DateUtils.parseDate(news.getModifiedDate()) %> &nbsp; <a href="/newsUpdateServlet?action=del&news-id=<%=KeyFactory.keyToString(news.getKey())%>">Del</a> </br>
<%
			}
%>
</body>
</html>